#ifndef USERMGR_H
#define USERMGR_H

#include <QObject>
#include"singleton.hpp"

class UserMgr:public QObject, public Singleton<UserMgr>
{
    Q_OBJECT
    friend class Singleton<UserMgr>;
public:
    ~UserMgr();
    void SetName(const QString& name);
    void SetUid(const int uid);
    void SetToken(const QString& token);

    const QString& getName() const;
    const QString& getToken() const;
    const int getUid() const;

private:
    UserMgr();

private:
    QString _name;
    QString _token;
    int _uid;
};

#endif // USERMGR_H
